package mn.idax.exchange.otc.mapper;

import mn.idax.exchange.otc.entity.Systemsetting;
import mn.idax.exchange.otc.entity.SystemsettingExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface SystemsettingMapper {
    int countByExample(SystemsettingExample example);

    int deleteByExample(SystemsettingExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Systemsetting record);

    int insertSelective(Systemsetting record);

    List<Systemsetting> selectByExampleWithRowbounds(SystemsettingExample example, RowBounds rowBounds);

    List<Systemsetting> selectByExample(SystemsettingExample example);

    Systemsetting selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Systemsetting record, @Param("example") SystemsettingExample example);

    int updateByExample(@Param("record") Systemsetting record, @Param("example") SystemsettingExample example);

    int updateByPrimaryKeySelective(Systemsetting record);

    int updateByPrimaryKey(Systemsetting record);

    //获取下单开关
    Systemsetting getOTCCreateOrderSwitch(@Param("switch") String otc_createOrder_switch);

    /**
     * 获取表配置
     * @return
     */
    List<Systemsetting> getAllSystemsetting();
}